package vistas.rodamientos;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JSeparator;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class menuRodamientoFrame extends javax.swing.JFrame {
	private JMenuBar MENU;
	private JSeparator jSeparator2;
	private JMenuItem jMenuItem3;
	private JSeparator jSeparator1;
	private JMenuItem jMenuItem2;
	private JMenuItem jMenuItem1;
	private JMenu jMenu1;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				menuRodamientoFrame inst = new menuRodamientoFrame();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public menuRodamientoFrame() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				MENU = new JMenuBar();
				setJMenuBar(MENU);
				{
					jMenu1 = new JMenu();
					MENU.add(jMenu1);
					jMenu1.setText("MENU");
					{
						jMenuItem1 = new JMenuItem();
						jMenu1.add(jMenuItem1);
						jMenuItem1.setText("AGREGAR");
						jMenuItem1.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								System.out.println("jMenuItem1.actionPerformed, event="+evt);
								
								AgregarRodamientoFrame v= new AgregarRodamientoFrame();
								v.setVisible(true);
								v.setLocationRelativeTo(null);
							}
						});
					}
					{
						jMenuItem2 = new JMenuItem();
						jMenu1.add(jMenuItem2);
						jMenuItem2.setText("DAR DE BAJA");
						jMenuItem2.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								System.out.println("jMenuItem2.actionPerformed, event="+evt);
								BajaRodamientoFrame v= new BajaRodamientoFrame();
								v.setVisible(true);
								v.setLocationRelativeTo(null);
							}
						});
						{
							jSeparator1 = new JSeparator();
							jMenuItem2.add(jSeparator1);
						}
					}
					{
						jMenuItem3 = new JMenuItem();
						jMenu1.add(jMenuItem3);
						jMenuItem3.setText("MODIFICAR");
						jMenuItem3.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								System.out.println("jMenuItem3.actionPerformed, event="+evt);
								ModificarRodamiento v= new ModificarRodamiento();
								v.setVisible(true);
								v.setLocationRelativeTo(null);
							}
						});
						{
							jSeparator2 = new JSeparator();
							jMenuItem3.add(jSeparator2);
						}
					}
				}
			}
			pack();
			setSize(400, 300);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
